home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4220 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Using own stacks with borlandc
  5. Date: 3 Feb 1996 06:45:48 +1300
  6. Organization: Airdmhor
  7. Message-ID: <4etikc$fbq@airdmhor.gen.nz>
  8. References: <4ef339$24q@thor.atcon.com> <4eisl3$9d2@airdmhor.gen.nz> <4elvir$ood@news.bellglobal.com>
  9. NNTP-Posting-Host: localhost.gen.nz
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Simon Hosie:
  13. >   Turn off stack overflow checking for a start.. umm.. you can assume ds=ss
  14. > if your own stack is near (ie. short near Stack[1024]).  If you don't use
  15. > near in the declaration (or if you don't use nmalloc()) then turn it off.
  16.  
  17. Steve Tupy:
  18. >     Ouch! You would endanger the whole stack checking mechanism in lieu
  19. > of altering the stack size? It is easy to turn it off via pragmas whenever
  20. > you need to without depriving your whole program of this rather handy
  21. > feature, don't you agree?
  22.  
  23.   You have to know _every_ function that will be executed while you're using
  24. your alterntive stack, though.
  25.  
  26.   When is the stack actually checked, anyway?  On entry/exit of functions
  27. only?
  28.